import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';

const routes: RouteRecordRaw[] = [
  {
    path: '/article',
    name: 'Article',
    component: BasicLayout,
    meta: {
      title: '文章管理',
      icon: 'lucide:layout-dashboard',
      order: -1,
      hideMenu: true,
    },
    children: [
      {
        path: 'list',
        name: 'ArticleList',
        component: () => import('#/views/article/index.vue'),
        meta: {
          title: '文章列表',
          icon: 'lucide:area-chart',
        },
      },
      {
        path: 'add',
        name: 'ArticleAdd',
        component: () => import('#/views/article/add.vue'),
        meta: {
          title: '文章管理',
          hideInMenu: true,
        },
      },
    ],
  },
];

export default routes;
